<template>
	<view>
		<u-cell-group>
			<u-cell v-for="item in number" :key="item" :title="houseTitle+item+'号楼'" isLink @click="selectRoom(item)">
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				number: [1, 2, 3, 4]
			}
		},
		computed: {
			houseTitle() {
				return this.$store.state.house.houseTitle
			}
		},
		methods: {
			selectRoom(number) {
				uni.navigateTo({
					url: '/pkg-house/room-number/room-number'
				})
				this.$store.commit('house/setRoomNumber', number)
			}
		}
	}
</script>

<style>

</style>
